
import admin.jms.resources.AdminJMSResources as adminJMSLocal
#import admin.sib.resources.AdminSIBResources as adminSIBLocal
import admin.servers.AdminServers as serverAdmin
import admin.datasources.resources.AdminDSResources as adminDS
#import admin.security.JAAS.AdminJAASAuthData as adminJaas

nodeContext = '/Node:CRI400WP_Node2'

jdbcJDBCProviders = [
                     ['/Server:BECVServerAS1', 'DB2 UDB for iSeries Provider Only (Toolbox)', 'DB2 UDB for iSeries (Toolbox)'],
                     ['/Server:BECVServerAS2', 'DB2 UDB for iSeries Provider Only (Toolbox)', 'DB2 UDB for iSeries (Toolbox)']
                    ]

jdbcDatasources = [
                   ['/Server:BECVServerAS1', 'DB2 UDB for iSeries (Toolbox)', 'wasDBSEC3', 'jdbc/wasDBSEC3', None, 'WWCMDATPRO', [['maxConnections', 30]], 'DB2 UDB for iSeries (Toolbox) DataSource', 'BCOINFRHM', 'credo3131'],
                   ['/Server:BECVServerAS1', 'DB2 UDB for iSeries (Toolbox)', 'wasDBSEC3XA', 'jdbc/wasDBSEC3XA', None, 'WWCMDATPRO', [['maxConnections', 15]], 'DB2 UDB for iSeries (Toolbox) DataSource', 'BCOINFRHM', 'credo3131'],
                   ['/Server:BECVServerAS2', 'DB2 UDB for iSeries (Toolbox)', 'wasDBSEC3', 'jdbc/wasDBSEC3', None, 'WWCMDATPRO', [['maxConnections', 30]], 'DB2 UDB for iSeries (Toolbox) DataSource', 'BCOINFRHM', 'credo3131'],
                   ['/Server:BECVServerAS2', 'DB2 UDB for iSeries (Toolbox)', 'wasDBSEC3XA', 'jdbc/wasDBSEC3XA', None, 'WWCMDATPRO', [['maxConnections', 15]], 'DB2 UDB for iSeries (Toolbox) DataSource', 'BCOINFRHM', 'credo3131']
                  ]

listenerPorts = [
                 [nodeContext, 'BECVServerAS1', 'ListenerPort', 'jms/localQCFListener', 'jms/outputQueue', 25, 0, 1, 'START'],
                 [nodeContext, 'BECVServerAS1', 'JMSServicePublisherListenerPort', 'jms/localCVQCFListener', 'jms/JMSServicePublisherListenerPort', 100, 0, 1, 'STOP'],
                 [nodeContext, 'BECVServerAS1', 'JMSServicePublisherListenerPortCR', 'jms/localCVQCFListener', 'jms/JMSServicePublisherListenerPortCR', 250, 0, 1, 'START'],
                 [nodeContext, 'BECVServerAS1', 'JMSServicePublisherListenerPortGT', 'jms/localCVQCFListener', 'jms/JMSServicePublisherListenerPortGT', 100, 0, 1, 'START'],
                 [nodeContext, 'BECVServerAS1', 'JMSServicePublisherListenerPortHN', 'jms/localCVQCFListener', 'jms/JMSServicePublisherListenerPortHN', 100, 0, 1, 'START'],
                 [nodeContext, 'BECVServerAS1', 'JMSServicePublisherListenerPortNI', 'jms/localCVQCFListener', 'jms/JMSServicePublisherListenerPortNI', 100, 0, 1, 'START'],
                 [nodeContext, 'BECVServerAS1', 'JMSServicePublisherListenerPortPA', 'jms/localCVQCFListener', 'jms/JMSServicePublisherListenerPortPA', 100, 0, 1, 'START'],
                 [nodeContext, 'BECVServerAS1', 'JMSServicePublisherListenerPortSV', 'jms/localCVQCFListener', 'jms/JMSServicePublisherListenerPortSV', 100, 0, 1, 'START'],
                 [nodeContext, 'BECVServerAS1', 'JMSServicePublisherListenerPortUS', 'jms/localCVQCFListener', 'jms/JMSServicePublisherListenerPortUS', 100, 0, 1, 'START'],
                 [nodeContext, 'BECVServerAS1', 'JMSServicePublisherListenerPortCO', 'jms/localCVQCFListener', 'jms/JMSServicePublisherListenerPortCO', 100, 0, 1, 'START'],
                 [nodeContext, 'BECVServerAS1', 'JMSGroupMessageServiceListenerPortCR', 'jms/localCVQCFListener', 'jms/JMSGroupMessageServiceListenerPortCR', 1, 0, 1, 'STOP'],
                 [nodeContext, 'BECVServerAS2', 'ListenerPort', 'jms/localQCFListener', 'jms/outputQueue', 25, 0, 1, 'START'],
                 [nodeContext, 'BECVServerAS2', 'JMSServicePublisherListenerPort', 'jms/localCVQCFListener', 'jms/JMSServicePublisherListenerPort', 100, 0, 1, 'STOP'],
                 [nodeContext, 'BECVServerAS2', 'JMSServicePublisherListenerPortCR', 'jms/localCVQCFListener', 'jms/JMSServicePublisherListenerPortCR', 250, 0, 1, 'START'],
                 [nodeContext, 'BECVServerAS2', 'JMSServicePublisherListenerPortGT', 'jms/localCVQCFListener', 'jms/JMSServicePublisherListenerPortGT', 100, 0, 1, 'START'],
                 [nodeContext, 'BECVServerAS2', 'JMSServicePublisherListenerPortHN', 'jms/localCVQCFListener', 'jms/JMSServicePublisherListenerPortHN', 100, 0, 1, 'START'],
                 [nodeContext, 'BECVServerAS2', 'JMSServicePublisherListenerPortNI', 'jms/localCVQCFListener', 'jms/JMSServicePublisherListenerPortNI', 100, 0, 1, 'START'],
                 [nodeContext, 'BECVServerAS2', 'JMSServicePublisherListenerPortPA', 'jms/localCVQCFListener', 'jms/JMSServicePublisherListenerPortPA', 100, 0, 1, 'START'],
                 [nodeContext, 'BECVServerAS2', 'JMSServicePublisherListenerPortSV', 'jms/localCVQCFListener', 'jms/JMSServicePublisherListenerPortSV', 100, 0, 1, 'START'],
                 [nodeContext, 'BECVServerAS2', 'JMSServicePublisherListenerPortUS', 'jms/localCVQCFListener', 'jms/JMSServicePublisherListenerPortUS', 100, 0, 1, 'START'],
                 [nodeContext, 'BECVServerAS2', 'JMSServicePublisherListenerPortCO', 'jms/localCVQCFListener', 'jms/JMSServicePublisherListenerPortCO', 100, 0, 1, 'START'],
                 [nodeContext, 'BECVServerAS2', 'JMSGroupMessageServiceListenerPortCR', 'jms/localCVQCFListener', 'jms/JMSGroupMessageServiceListenerPortCR', 1, 0, 1, 'STOP']
                ]

MQQCFResources = [
                  [#Binding resources
                     ['/Server:BECVServerAS1', 'localQCFListener', 'jms/localQCFListener', 'CRI400PWA', [['maxConnections', '1'], ['minConnections', '1'], ['connectionTimeout', '180']], [['maxConnections', '25'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS1', 'localQCFCVListener', 'jms/localCVQCFListener', 'CRI400PWA', [['maxConnections', '1'], ['minConnections', '1'], ['connectionTimeout', '180']], [['maxConnections', '25'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS1', 'localQCF', 'jms/localQCF', 'CRI400PWA', [['maxConnections', '25'], ['minConnections', '1'], ['connectionTimeout', '180']], [['maxConnections', '15'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS1', 'LCORSBEBEQCF', 'jms/LCORSBEBEQCF', 'CRI400WPA', [['maxConnections', '20'], ['minConnections', '5'], ['connectionTimeout', '180']], [['maxConnections', '10'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS1', 'BCOHNSRVQCF', 'jms/BCOHNSRVQCF', 'CRI400WPA', [['maxConnections', '20'], ['minConnections', '5'], ['connectionTimeout', '180']], [['maxConnections', '10'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS1', 'BCOSRVQCF', 'jms/BCOSRVQCF', 'CRI400WPA', [['maxConnections', '20'], ['minConnections', '5'], ['connectionTimeout', '180']], [['maxConnections', '10'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS1', 'BCOSVSRVQCF', 'jms/BCOSVSRVQCF', 'CRI400WPA', [['maxConnections', '20'], ['minConnections', '5'], ['connectionTimeout', '180']], [['maxConnections', '10'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS1', 'BCONISRVQCF', 'jms/BCONISRVQCF', 'CRI400WPA', [['maxConnections', '20'], ['minConnections', '5'], ['connectionTimeout', '180']], [['maxConnections', '10'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS1', 'BCOPASRVQCF', 'jms/BCOPASRVQCF', 'CRI400WPA', [['maxConnections', '20'], ['minConnections', '5'], ['connectionTimeout', '180']], [['maxConnections', '10'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS1', 'BCOGTSRVQCF', 'jms/BCOGTSRVQCF', 'CRI400WPA', [['maxConnections', '20'], ['minConnections', '5'], ['connectionTimeout', '180']], [['maxConnections', '10'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS1', 'COMHNSRVQCF', 'jms/COMHNSRVQCF', 'CRI400WPA', [['maxConnections', '20'], ['minConnections', '5'], ['connectionTimeout', '180']], [['maxConnections', '10'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS1', 'COMCRSRVQCF', 'jms/COMCRSRVQCF', 'CRI400WPA', [['maxConnections', '20'], ['minConnections', '5'], ['connectionTimeout', '180']], [['maxConnections', '10'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS1', 'COMSVSRVQCF', 'jms/COMSVSRVQCF', 'CRI400WPA', [['maxConnections', '20'], ['minConnections', '5'], ['connectionTimeout', '180']], [['maxConnections', '10'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS1', 'COMNISRVQCF', 'jms/COMNISRVQCF', 'CRI400WPA', [['maxConnections', '20'], ['minConnections', '5'], ['connectionTimeout', '180']], [['maxConnections', '10'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS1', 'COMPASRVQCF', 'jms/COMPASRVQCF', 'CRI400WPA', [['maxConnections', '20'], ['minConnections', '5'], ['connectionTimeout', '180']], [['maxConnections', '10'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS1', 'COMGTSRVQCF', 'jms/COMGTSRVQCF', 'CRI400WPA', [['maxConnections', '20'], ['minConnections', '5'], ['connectionTimeout', '180']], [['maxConnections', '10'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS2', 'localQCFListener', 'jms/localQCFListener', 'CRI400PWA', [['maxConnections', '1'], ['minConnections', '1'], ['connectionTimeout', '180']], [['maxConnections', '25'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS2', 'localQCFCVListener', 'jms/localCVQCFListener', 'CRI400PWA', [['maxConnections', '1'], ['minConnections', '1'], ['connectionTimeout', '180']], [['maxConnections', '25'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS2', 'localQCF', 'jms/localQCF', 'CRI400PWA', [['maxConnections', '25'], ['minConnections', '1'], ['connectionTimeout', '180']], [['maxConnections', '15'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS2', 'LCORSBEBEQCF', 'jms/LCORSBEBEQCF', 'CRI400WPA', [['maxConnections', '20'], ['minConnections', '5'], ['connectionTimeout', '180']], [['maxConnections', '10'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS2', 'BCOHNSRVQCF', 'jms/BCOHNSRVQCF', 'CRI400WPA', [['maxConnections', '20'], ['minConnections', '5'], ['connectionTimeout', '180']], [['maxConnections', '10'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS2', 'BCOSRVQCF', 'jms/BCOSRVQCF', 'CRI400WPA', [['maxConnections', '20'], ['minConnections', '5'], ['connectionTimeout', '180']], [['maxConnections', '10'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS2', 'BCOSVSRVQCF', 'jms/BCOSVSRVQCF', 'CRI400WPA', [['maxConnections', '20'], ['minConnections', '5'], ['connectionTimeout', '180']], [['maxConnections', '10'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS2', 'BCONISRVQCF', 'jms/BCONISRVQCF', 'CRI400WPA', [['maxConnections', '20'], ['minConnections', '5'], ['connectionTimeout', '180']], [['maxConnections', '10'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS2', 'BCOPASRVQCF', 'jms/BCOPASRVQCF', 'CRI400WPA', [['maxConnections', '20'], ['minConnections', '5'], ['connectionTimeout', '180']], [['maxConnections', '10'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS2', 'BCOGTSRVQCF', 'jms/BCOGTSRVQCF', 'CRI400WPA', [['maxConnections', '20'], ['minConnections', '5'], ['connectionTimeout', '180']], [['maxConnections', '10'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS2', 'COMHNSRVQCF', 'jms/COMHNSRVQCF', 'CRI400WPA', [['maxConnections', '20'], ['minConnections', '5'], ['connectionTimeout', '180']], [['maxConnections', '10'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS2', 'COMCRSRVQCF', 'jms/COMCRSRVQCF', 'CRI400WPA', [['maxConnections', '20'], ['minConnections', '5'], ['connectionTimeout', '180']], [['maxConnections', '10'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS2', 'COMSVSRVQCF', 'jms/COMSVSRVQCF', 'CRI400WPA', [['maxConnections', '20'], ['minConnections', '5'], ['connectionTimeout', '180']], [['maxConnections', '10'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS2', 'COMNISRVQCF', 'jms/COMNISRVQCF', 'CRI400WPA', [['maxConnections', '20'], ['minConnections', '5'], ['connectionTimeout', '180']], [['maxConnections', '10'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS2', 'COMPASRVQCF', 'jms/COMPASRVQCF', 'CRI400WPA', [['maxConnections', '20'], ['minConnections', '5'], ['connectionTimeout', '180']], [['maxConnections', '10'], ['minConnections', '5'], ['connectionTimeout', '180']]],
                     ['/Server:BECVServerAS2', 'COMGTSRVQCF', 'jms/COMGTSRVQCF', 'CRI400WPA', [['maxConnections', '20'], ['minConnections', '5'], ['connectionTimeout', '180']], [['maxConnections', '10'], ['minConnections', '5'], ['connectionTimeout', '180']]]
                  ],
                  [#Client resources
                  ]
                 ]

MQQueueResources = [
                    ['/Server:BECVServerAS1', 'inputQueue', 'jms/inputQueue', 'CCRSBE.WW.CV.INTERNAL.RSP.1', 'true'],
                    ['/Server:BECVServerAS1', 'outputQueue', 'jms/outputQueue', 'CCRSBE.WW.CV.INTERNAL.QRY.1', 'true'],
                    ['/Server:BECVServerAS1', 'JMSServicePublisherListenerPortCR', 'jms/JMSServicePublisherListenerPortCR', 'CL.CRGSBE.CV.BECR.CON.1', 'true'],
                    ['/Server:BECVServerAS1', 'JMSServicePublisherListenerPortGT', 'jms/JMSServicePublisherListenerPortGT', 'CL.CRGSBE.CV.BEGT.CON.1', 'true'],
                    ['/Server:BECVServerAS1', 'JMSServicePublisherListenerPortHN', 'jms/JMSServicePublisherListenerPortHN', 'CL.CRGSBE.CV.BEHN.CON.1', 'true'],
                    ['/Server:BECVServerAS1', 'JMSServicePublisherListenerPortNI', 'jms/JMSServicePublisherListenerPortNI', 'CL.CRGSBE.CV.BENI.CON.1', 'true'],
                    ['/Server:BECVServerAS1', 'JMSServicePublisherListenerPortPA', 'jms/JMSServicePublisherListenerPortPA', 'CL.CRGSBE.CV.BEPA.CON.1', 'true'],
                    ['/Server:BECVServerAS1', 'JMSServicePublisherListenerPortSV', 'jms/JMSServicePublisherListenerPortSV', 'CL.CRGSBE.CV.BESV.CON.1', 'true'],
                    ['/Server:BECVServerAS1', 'JMSServicePublisherListenerPortUS', 'jms/JMSServicePublisherListenerPortUS', 'CL.CRGSBE.CV.BEUS.CON.1', 'true'],
                    ['/Server:BECVServerAS1', 'JMSServicePublisherListenerPortCO', 'jms/JMSServicePublisherListenerPortCO', 'CL.CRGSBE.CV.BECO.CON.1', 'true'],
                    ['/Server:BECVServerAS1', 'CL.LCRBA.SRV.CONSULTA', 'jms/CL.LCRBA.SRV.CONSULTA', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LCRBA.SRV.TRANSACCION', 'jms/CL.LCRBA.SRV.TRANSACCION', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LCRBA.SRV.TRANSACCION.TEF', 'jms/CL.LCRBA.SRV.TRANSACCION.TEF', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LCRBA.SRV.TRANSACCION.BATCH', 'jms/CL.LCRBA.SRV.TRANSACCION.BATCH', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LCRFT.SRV.TRANSFERENCIA', 'jms/CL.LCRFT.SRV.TRANSFERENCIA', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LCRBA.SRV.CONSULTA.FRM3', 'jms/CL.LCRBA.SRV.CONSULTA.FRM3', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LGTBA.SRV.CONSULTA', 'jms/CL.LGTBA.SRV.CONSULTA', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LHNBA.SRV.CONSULTA', 'jms/CL.LHNBA.SRV.CONSULTA', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LNIBA.SRV.CONSULTA', 'jms/CL.LNIBA.SRV.CONSULTA', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LSVBA.SRV.CONSULTA', 'jms/CL.LSVBA.SRV.CONSULTA', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LPABA.SRV.CONSULTA', 'jms/CL.LPABA.SRV.CONSULTA', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LGTBA.SRV.TRANSACCION', 'jms/CL.LGTBA.SRV.TRANSACCION', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LHNBA.SRV.TRANSACCION', 'jms/CL.LHNBA.SRV.TRANSACCION', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LNIBA.SRV.TRANSACCION', 'jms/CL.LNIBA.SRV.TRANSACCION', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LSVBA.SRV.TRANSACCION', 'jms/CL.LSVBA.SRV.TRANSACCION', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LPABA.SRV.TRANSACCION', 'jms/CL.LPABA.SRV.TRANSACCION', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LGTBA.SRV.TRANSACCION.TEF', 'jms/CL.LGTBA.SRV.TRANSACCION.TEF', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LHNBA.SRV.TRANSACCION.TEF', 'jms/CL.LHNBA.SRV.TRANSACCION.TEF', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LNIBA.SRV.TRANSACCION.TEF', 'jms/CL.LNIBA.SRV.TRANSACCION.TEF', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LSVBA.SRV.TRANSACCION.TEF', 'jms/CL.LSVBA.SRV.TRANSACCION.TEF', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LPABA.SRV.TRANSACCION.TEF', 'jms/CL.LPABA.SRV.TRANSACCION.TEF', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LGTBA.SRV.TRANSACCION.BATCH', 'jms/CL.LGTBA.SRV.TRANSACCION.BATCH', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LHNBA.SRV.TRANSACCION.BATCH', 'jms/CL.LHNBA.SRV.TRANSACCION.BATCH', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LNIBA.SRV.TRANSACCION.BATCH', 'jms/CL.LNIBA.SRV.TRANSACCION.BATCH', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LSVBA.SRV.TRANSACCION.BATCH', 'jms/CL.LSVBA.SRV.TRANSACCION.BATCH', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LPABA.SRV.TRANSACCION.BATCH', 'jms/CL.LPABA.SRV.TRANSACCION.BATCH', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LGTFT.SRV.TRANSFERENCIA', 'jms/CL.LGTFT.SRV.TRANSFERENCIA', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LHNFT.SRV.TRANSFERENCIA', 'jms/CL.LHNFT.SRV.TRANSFERENCIA', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LNIFT.SRV.TRANSFERENCIA', 'jms/CL.LNIFT.SRV.TRANSFERENCIA', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LSVFT.SRV.TRANSFERENCIA', 'jms/CL.LSVFT.SRV.TRANSFERENCIA', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LPAFT.SRV.TRANSFERENCIA', 'jms/CL.LPAFT.SRV.TRANSFERENCIA', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LGTBA.SRV.CONSULTA.FRM3', 'jms/CL.LGTBA.SRV.CONSULTA.FRM3', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LHNBA.SRV.CONSULTA.FRM3', 'jms/CL.LHNBA.SRV.CONSULTA.FRM3', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LNIBA.SRV.CONSULTA.FRM3', 'jms/CL.LNIBA.SRV.CONSULTA.FRM3', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LSVBA.SRV.CONSULTA.FRM3', 'jms/CL.LSVBA.SRV.CONSULTA.FRM3', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LPABA.SRV.CONSULTA.FRM3', 'jms/CL.LPABA.SRV.CONSULTA.FRM3', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LGTCM.SRV.CONSULTA.FRM3', 'jms/CL.LGTCM.SRV.CONSULTA.FRM3', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LHNCM.SRV.CONSULTA.FRM3', 'jms/CL.LHNCM.SRV.CONSULTA.FRM3', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LNICM.SRV.CONSULTA.FRM3', 'jms/CL.LNICM.SRV.CONSULTA.FRM3', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LSVCM.SRV.CONSULTA.FRM3', 'jms/CL.LSVCM.SRV.CONSULTA.FRM3', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'CL.LPACM.SRV.CONSULTA.FRM3', 'jms/CL.LPACM.SRV.CONSULTA.FRM3', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS1', 'BCO.SRV.RESPUESTA', 'jms/BCO.SRV.RESPUESTA', 'CL.CRI400WPA.RESPUESTA', 'false'],
                    ['/Server:BECVServerAS1', 'COM.SRV.RESPUESTA', 'jms/COM.SRV.RESPUESTA', 'CL.CRI400WPA.RESPUESTA', 'false'],
                    ['/Server:BECVServerAS2', 'inputQueue', 'jms/inputQueue', 'CCRSBE.WW.CV.INTERNAL.RSP.2', 'true'],
                    ['/Server:BECVServerAS2', 'outputQueue', 'jms/outputQueue', 'CCRSBE.WW.CV.INTERNAL.QRY.2', 'true'],
                    ['/Server:BECVServerAS2', 'JMSServicePublisherListenerPortCR', 'jms/JMSServicePublisherListenerPortCR', 'CL.CRGSBE.CV.BECR.CON.1', 'true'],
                    ['/Server:BECVServerAS2', 'JMSServicePublisherListenerPortGT', 'jms/JMSServicePublisherListenerPortGT', 'CL.CRGSBE.CV.BEGT.CON.1', 'true'],
                    ['/Server:BECVServerAS2', 'JMSServicePublisherListenerPortHN', 'jms/JMSServicePublisherListenerPortHN', 'CL.CRGSBE.CV.BEHN.CON.1', 'true'],
                    ['/Server:BECVServerAS2', 'JMSServicePublisherListenerPortNI', 'jms/JMSServicePublisherListenerPortNI', 'CL.CRGSBE.CV.BENI.CON.1', 'true'],
                    ['/Server:BECVServerAS2', 'JMSServicePublisherListenerPortPA', 'jms/JMSServicePublisherListenerPortPA', 'CL.CRGSBE.CV.BEPA.CON.1', 'true'],
                    ['/Server:BECVServerAS2', 'JMSServicePublisherListenerPortSV', 'jms/JMSServicePublisherListenerPortSV', 'CL.CRGSBE.CV.BESV.CON.1', 'true'],
                    ['/Server:BECVServerAS2', 'JMSServicePublisherListenerPortUS', 'jms/JMSServicePublisherListenerPortUS', 'CL.CRGSBE.CV.BEUS.CON.1', 'true'],
                    ['/Server:BECVServerAS2', 'JMSServicePublisherListenerPortCO', 'jms/JMSServicePublisherListenerPortCO', 'CL.CRGSBE.CV.BECO.CON.1', 'true'],
                    ['/Server:BECVServerAS2', 'CL.LCRBA.SRV.CONSULTA', 'jms/CL.LCRBA.SRV.CONSULTA', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LCRBA.SRV.TRANSACCION', 'jms/CL.LCRBA.SRV.TRANSACCION', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LCRBA.SRV.TRANSACCION.TEF', 'jms/CL.LCRBA.SRV.TRANSACCION.TEF', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LCRBA.SRV.TRANSACCION.BATCH', 'jms/CL.LCRBA.SRV.TRANSACCION.BATCH', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LCRFT.SRV.TRANSFERENCIA', 'jms/CL.LCRFT.SRV.TRANSFERENCIA', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LCRBA.SRV.CONSULTA.FRM3', 'jms/CL.LCRBA.SRV.CONSULTA.FRM3', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LGTBA.SRV.CONSULTA', 'jms/CL.LGTBA.SRV.CONSULTA', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LHNBA.SRV.CONSULTA', 'jms/CL.LHNBA.SRV.CONSULTA', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LNIBA.SRV.CONSULTA', 'jms/CL.LNIBA.SRV.CONSULTA', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LSVBA.SRV.CONSULTA', 'jms/CL.LSVBA.SRV.CONSULTA', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LPABA.SRV.CONSULTA', 'jms/CL.LPABA.SRV.CONSULTA', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LGTBA.SRV.TRANSACCION', 'jms/CL.LGTBA.SRV.TRANSACCION', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LHNBA.SRV.TRANSACCION', 'jms/CL.LHNBA.SRV.TRANSACCION', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LNIBA.SRV.TRANSACCION', 'jms/CL.LNIBA.SRV.TRANSACCION', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LSVBA.SRV.TRANSACCION', 'jms/CL.LSVBA.SRV.TRANSACCION', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LPABA.SRV.TRANSACCION', 'jms/CL.LPABA.SRV.TRANSACCION', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LGTBA.SRV.TRANSACCION.TEF', 'jms/CL.LGTBA.SRV.TRANSACCION.TEF', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LHNBA.SRV.TRANSACCION.TEF', 'jms/CL.LHNBA.SRV.TRANSACCION.TEF', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LNIBA.SRV.TRANSACCION.TEF', 'jms/CL.LNIBA.SRV.TRANSACCION.TEF', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LSVBA.SRV.TRANSACCION.TEF', 'jms/CL.LSVBA.SRV.TRANSACCION.TEF', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LPABA.SRV.TRANSACCION.TEF', 'jms/CL.LPABA.SRV.TRANSACCION.TEF', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LGTBA.SRV.TRANSACCION.BATCH', 'jms/CL.LGTBA.SRV.TRANSACCION.BATCH', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LHNBA.SRV.TRANSACCION.BATCH', 'jms/CL.LHNBA.SRV.TRANSACCION.BATCH', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LNIBA.SRV.TRANSACCION.BATCH', 'jms/CL.LNIBA.SRV.TRANSACCION.BATCH', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LSVBA.SRV.TRANSACCION.BATCH', 'jms/CL.LSVBA.SRV.TRANSACCION.BATCH', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LPABA.SRV.TRANSACCION.BATCH', 'jms/CL.LPABA.SRV.TRANSACCION.BATCH', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LGTFT.SRV.TRANSFERENCIA', 'jms/CL.LGTFT.SRV.TRANSFERENCIA', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LHNFT.SRV.TRANSFERENCIA', 'jms/CL.LHNFT.SRV.TRANSFERENCIA', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LNIFT.SRV.TRANSFERENCIA', 'jms/CL.LNIFT.SRV.TRANSFERENCIA', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LSVFT.SRV.TRANSFERENCIA', 'jms/CL.LSVFT.SRV.TRANSFERENCIA', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LPAFT.SRV.TRANSFERENCIA', 'jms/CL.LPAFT.SRV.TRANSFERENCIA', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LGTBA.SRV.CONSULTA.FRM3', 'jms/CL.LGTBA.SRV.CONSULTA.FRM3', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LHNBA.SRV.CONSULTA.FRM3', 'jms/CL.LHNBA.SRV.CONSULTA.FRM3', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LNIBA.SRV.CONSULTA.FRM3', 'jms/CL.LNIBA.SRV.CONSULTA.FRM3', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LSVBA.SRV.CONSULTA.FRM3', 'jms/CL.LSVBA.SRV.CONSULTA.FRM3', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LPABA.SRV.CONSULTA.FRM3', 'jms/CL.LPABA.SRV.CONSULTA.FRM3', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LGTCM.SRV.CONSULTA.FRM3', 'jms/CL.LGTCM.SRV.CONSULTA.FRM3', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LHNCM.SRV.CONSULTA.FRM3', 'jms/CL.LHNCM.SRV.CONSULTA.FRM3', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LNICM.SRV.CONSULTA.FRM3', 'jms/CL.LNICM.SRV.CONSULTA.FRM3', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LSVCM.SRV.CONSULTA.FRM3', 'jms/CL.LSVCM.SRV.CONSULTA.FRM3', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'CL.LPACM.SRV.CONSULTA.FRM3', 'jms/CL.LPACM.SRV.CONSULTA.FRM3', 'CL.CRCORWASDESSEC1.EMULATOR.INPUT', 'false'],
                    ['/Server:BECVServerAS2', 'BCO.SRV.RESPUESTA', 'jms/BCO.SRV.RESPUESTA', 'CL.CRI400WPA.RESPUESTA', 'false'],
                    ['/Server:BECVServerAS2', 'COM.SRV.RESPUESTA', 'jms/COM.SRV.RESPUESTA', 'CL.CRI400WPA.RESPUESTA', 'false'],
                    ['/Server:BECVServerAS1', 'CRI400WPA.CL.CRI400WPA.RESPUESTA', 'jms/CRI400WPA.CL.CRI400WPA.RESPUESTA', 'CL.CRI400WPA.RESPUESTA', 'false'],
                    ['/Server:BECVServerAS2', 'CRI400WPA.CL.CRI400WPA.RESPUESTA', 'jms/CRI400WPA.CL.CRI400WPA.RESPUESTA', 'CL.CRI400WPA.RESPUESTA', 'false']
                   ]


##JDBC Providers
for jdbcProvider in jdbcJDBCProviders:
    adminDS.createDB2JDBCProvider(jdbcProvider[0], jdbcProvider[1], jdbcProvider[2])

##JDBC Datasources
for jdbcDatasource in jdbcDatasources:
    adminDS.createDB2Datasource(jdbcDatasource[0], jdbcDatasource[1], jdbcDatasource[2], jdbcDatasource[3], jdbcDatasource[4], jdbcDatasource[5], jdbcDatasource[6], jdbcDatasource[7], jdbcDatasource[8], jdbcDatasource[9])

##ListenerPorts
for listenerPort in listenerPorts:
    serverAdmin.createListenerPort(listenerPort[0], listenerPort[1], listenerPort[2], listenerPort[3], listenerPort[4], listenerPort[5], listenerPort[6], listenerPort[7], listenerPort[8])

##MQQCFs
for mQQCFBindingResource in MQQCFResources[0]:
    adminJMSLocal.createBindingsMQQueueConnectionFactory(mQQCFBindingResource[0], mQQCFBindingResource[1], mQQCFBindingResource[2], mQQCFBindingResource[3], mQQCFBindingResource[4], mQQCFBindingResource[5])

for mQQCFClientResource in MQQCFResources[1]:
    adminJMSLocal.createClientMQQueueConnectionFactory(mQQCFClientResource[0], mQQCFClientResource[1], mQQCFClientResource[2], mQQCFClientResource[3], mQQCFClientResource[4], mQQCFClientResource[5], mQQCFClientResource[6], mQQCFClientResource[7], mQQCFClientResource[8])

##MQQueues
for mQQueueResource in MQQueueResources:
    adminJMSLocal.createMQQueue(mQQueueResource[0], mQQueueResource[1], mQQueueResource[2], mQQueueResource[3], mQQueueResource[4])


######### Saving configuration ############
print "     Saving configuration."
AdminConfig.save()
print "     Done."